<?php

namespace Shop\AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AdminRole
 *
 * @ORM\Table(name="admin_role")
 * @ORM\Entity(repositoryClass="Shop\AdminBundle\Entity\AdminRoleRepository")
 */
class AdminRole
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="rolename", type="string", length=20)
     */
    private $rolename;

    /**
     * @var string
     *
     * @ORM\Column(name="privileges", type="string", length=100)
     */
    private $privileges;

    /**
     * @var
     *
     * @ORM\Column(type="smallint", columnDefinition="tinyint", nullable=false)
     */
    private $level;

    /**
     * @var
     * @ORM\Column(type="smallint", columnDefinition="tinyint", nullable=false)
     */
    private $isDelete;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set rolename
     *
     * @param string $rolename
     * @return AdminRole
     */
    public function setRolename($rolename)
    {
        $this->rolename = $rolename;

        return $this;
    }

    /**
     * Get rolename
     *
     * @return string 
     */
    public function getRolename()
    {
        return $this->rolename;
    }

    /**
     * Set privileges
     *
     * @param string $privileges
     * @return AdminRole
     */
    public function setPrivileges($privileges)
    {
        $this->privileges = $privileges;

        return $this;
    }

    /**
     * Get privileges
     *
     * @return string 
     */
    public function getPrivileges()
    {
        return $this->privileges;
    }

    /**
     * Set level
     *
     * @param string $level
     * @return AdminRole
     */
    public function setLevel($level)
    {
        $this->level = $level;

        return $this;
    }

    /**
     * Get level
     *
     * @return string 
     */
    public function getLevel()
    {
        return $this->level;
    }

    /**
     * Set isDelete
     *
     * @param integer $isDelete
     * @return AdminRole
     */
    public function setIsDelete($isDelete)
    {
        $this->isDelete = $isDelete;

        return $this;
    }

    /**
     * Get isDelete
     *
     * @return integer 
     */
    public function getIsDelete()
    {
        return $this->isDelete;
    }
}
